About the Image Link Demo
This demo shows how to use the DBWebImage
control with string columns in a DataTable. In DBWeb 1.0, only Blob columns could
be used with DBWeb image. In DBWeb 2.0, if a string column is found its contents
are interpreted as a link to an image file.
Setup Information
-
Refer to AspSetup.htm, DBWebDemoSetupXML.htm, and DBWebDemoSetupDB.htm
in the demos\delphi.net\dbweb directory for setup and configuration information.
Note: The data in the xml file assumes that the
AliasName is "ImageLink2", so that images will not appear unless it has
this name.
-
Before running the application for the first time, double click on
the DBWebDataSource control in the tool tray, and then use the object
inspector to set its XMLFileName property to "countries.xml" in this
directory. You are ready to run. The jpgs for this demo are stored in the jpg
subdirectory.
Running the Demo
- Start the IDE.
- Open this project.
-
Complete the steps from the Setup Informationsection
above.
- Compile the Applicaton (Project Menu, Compile all projects).
- Run the application with debugging (F9) or without debugging
(Shift+Ctrl+F9)